<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<c:url value="/security_check" var="action"/>
<script type="text/javascript">
<!--
	$(function(){
		$('#login').click(function(){$('#form').submit();})
		$('#reset').click(function(){$('#form').reset();})
	});
//-->
</script>
<body>
 <div class="form">
	<form name="f" action="${action}" id="form" method="POST">
	 	<div class="form_row">
		 	<div>User:</div>
			<div><input type="text" name="j_username"/></div>
		</div>
	 	<div class="form_row">
	 		<div>Password:</div>
	 		<div><input type="password" name="j_password"/></div>
	 	</div>
	<c:if test="${not empty param.login_error}">
		<div ><span class="error">Invalid user/password</span></div>
	</c:if>
	 	<div class="button_container">
	 		<span id="login" class="button-class" >login</span>
	 		<span id="reset" class="button-class" >reset</span>
	 	</div>
	 	
	</form>
 </div>
</body>

